package com.wym.charging.controller;


import com.wym.charging.common.Result;
import com.wym.charging.entity.MonthlySubscriptionOption;
import com.wym.charging.service.MonthlySubscriptionOptionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 月卡选项(MonthlySubscriptionOption)表控制层
 *
 * @author WangYimin
 * @since 2024-12-08 22:40:49
 */
@Tag(name = "月卡选项")
@RestController
@RequestMapping("monthly-subscription-option")
public class MonthlySubscriptionOptionController {
    /**
     * 服务对象
     */
    @Autowired
    private MonthlySubscriptionOptionService monthlySubscriptionOptionService;

    @PostMapping
    @Operation(summary = "获取月卡选项")
    public Result<List<MonthlySubscriptionOption>> getMonthlySubscriptionOption() {
        List<MonthlySubscriptionOption> list = monthlySubscriptionOptionService.list();
        return Result.success(list);
    }

}

